import axios from 'axios';
const BASE_URL = '192.168.0.135:3033';

class Request {
    get() {
        console.log('get request');
    };

    post(url, data) {
        console.log('url :>> ', url);
        console.log('data :>> ', data);
        console.log('post function');
        return axios.post(`${url}`, data).catch((error) => {
            // console.log('error.response :>> ', error.response);
            return error.response;
        });
    };


}

const instance = new Request();

export default instance;